module.exports = {
    chainWebpack: config => {
        config
            .cache(true)
            .plugin('html')
            .tap(args => {
                args[0].title= 'EVA V1.0.2'
                return args
            })

    },
    lintOnSave: false, // 关掉eslint
    devServer: {
        port: 8908, // 端口
        overlay: {
            warnings: false,
            errors: false,
        },
        proxy: {
            "/api": {
                target: "http://192.168.0.162:19080/",
                changeOrigin: true,
                pathRewrite: {
                    "^/api": "",
                },
            },
        },
    },
    // 输出文件目录
    outputDir: "D:/wwwroot/test/eva/static_pc",
    productionSourceMap: false,//减少打包后体积
};
